﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleEdit.aspx.cs" Inherits="Web.RoleEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>角色维护</title>
    <base target="_self" />
    <meta content="ie=7" http-equiv="x-ua-compatible"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <link href="Styles/Style01.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
    <link href="Styles/validate.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/easy_validator.pack.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("[reg]").parents("td").prev().append("<font color='#ff0000'>*</font>");
            $("#btnSave").click(function () {
                var isSubmit = true;
                $("form").find("[reg],[url]:not([reg])").each(function () {
                    if (!validate($(this), this.tagName)) {
                        isSubmit = false;
                    }
                });
                if (!isSubmit) {
                    alert("请确认'红字或红框'处的输入正确!");
                }
                return isSubmit;
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" runat="server" id="Id" />
<table class="s1" style="margin:0px auto;">
<tr>
    <td width="25%">角色名：</td>
    <td><asp:TextBox ID="txtName" runat="server" reg="."></asp:TextBox></td>
</tr>
<tr>
    <td>角色描述：</td>
    <td><asp:TextBox ID="txtDescription" runat="server" reg="."></asp:TextBox></td>
</tr>
</table>
<div style="text-align:center;margin-right:24px;margin-top:6px;">
    <asp:button runat="server" text="保存" class="btn" id="btnSave" onclick="btnSave_Click"/>
    <input type="button" value="关闭" class="btn" onclick="window.close();" />
</div>
    </form>
</body>
</html>